import {
    get,
    post
} from '../utils/request'
import {
    removePropertyOfNull
} from '@/utils/tools'

// 支行详情
export const getBranchBankDetail = (id) => {
    return get(`/cloud-system/bank-info/detail/${id}`);
};

// 总行详情
export const getBankDetail = (id) => {
    return get(`/cloud-system/bank-type/detail/${id}`);
};

export const getBankList = () => {
    return get('/cloud-system/bank-type/select');
};


export const getBranchBankList = (current, bankName, params) => {
    return get('/cloud-system/bank-info/list', removePropertyOfNull({
        size: 20,
        bankName,
        current,
        ...params,
    }))
}

export const getBranchBankList1 = (current, bankName, params) => {
    return get('/cloud-system/bank-info/list', removePropertyOfNull({
        size: 999,
        bankName,
        current,
        ...params,
    }))
}

//获取店员详情
export const getStoremenDetail = (id) => {
    return get("/cloud-merchant/mrc/storemen/detail?id="+ id);
};

